package com.itheima.admin.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author longbosheng
 * @Date 2022/6/18 9:54
 * @PackageName:com.itheima.pojo
 * @ClassName: SetmealDishes
 * @Description: TODO
 * @Version 1.0
 */
@Data
@TableName("setmeal_dish")
@Component
public class SetmealDishesVo {
    private String id; //分类编号
    @TableField(value = "setmeal_id")
    private String setmealId;//套餐id
    @TableField(value = "dish_id")
    private String dishId; //菜品id
    private String name; //菜品名字
    private BigDecimal price; //价格
    private String copies;//份数
    private int sort; //顺序
    @TableField(value = "create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;//创建时间
    @TableField(value = "update_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;//更新时间
    @TableField(value = "create_user")
    private String createUser;//创建人
    @TableField(value = "update_user")
    private String updateUser; //修改人
    private String isDeleted; //是否已删除

}
